<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action=""  method="post" id="cp-form">

            <div class="layui-form-item">
                <label class="layui-form-label">平台名称 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="text" name="name" required  lay-verify="required" value="{$data.name}" placeholder="平台名称" autocomplete="off" class="layui-input">
                    <div class="layui-form-mid layui-word-aux"></div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label"> 平台id <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="text" name="value[accessKeyId]" required  lay-verify="required" value="{$data.value.accessKeyId}" placeholder="accessKeyId" autocomplete="off" class="layui-input">
                    <div class="layui-form-mid layui-word-aux">accessKeyId</div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label"> 平台密码 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="text" name="value[accessKeySecret]" required  lay-verify="required" value="{$data.value.accessKeySecret}" placeholder="accessKeySecret" autocomplete="off" class="layui-input">
                    <div class="layui-form-mid layui-word-aux">accessKeySecret</div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">服务商<span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <select name="type" id="">
                        <option value="1" selected >阿里云</option>
                        <option value="2" {eq name="$data.type" value="2"} selected{/eq}>腾讯云</option>
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <input type="hidden" name="id" value="{$data.id}" >
                    <div class="layui-text">带 * 号的为必填项</div>
                    <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                    <a href="{:url('admin/sms.smsservice/index')}" class="layui-btn layui-btn-primary" >返回</a>
                </div>
            </div>
        </form>
    </div>
</div>
